home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util1 / mcdpindx.lha / MCDPIndex / MCDPIndex.c < prev    next >
C/C++ Source or Header  |  1995-09-13  |  807b  |  39 lines

  1. /*
  2.  * MCDPIndex - A small, stupid but somewhat useful (?) tool.
  3.  *
  4.  * © 1995 by Michael Bauer (michael.bauer@zdv.uni-tuebingen.de
  5.  *
  6.  * Sorry, this sourcecode is really small and stupid. But I wanted to
  7.  * take a look at all the index files included in some CDPlayer GUIs
  8.  * like e.g MCDP, BGUIPlayer, CeeD, ...
  9.  *
  10.  * Usage: spat MCDPIndex songdir:id#? [ > <CDIndex> ]
  11.  *
  12.  * Disclaimer: This stuff is Freeware
  13.  */
  14.  
  15. #include <stdio.h>
  16.  
  17. void main(int argc, char **argv) {
  18.  
  19.     FILE *in;
  20.     char buf[256];
  21.  
  22.     if (argc != 2) {
  23.         printf("Usage: cdindex  <filename>\n");
  24.         exit(0);
  25.     }
  26.  
  27.     in = fopen(argv[1],"r");
  28.     if (!in) {
  29.         printf("Error: Can't open file.\n");
  30.         exit(0);
  31.     }
  32.  
  33.     printf("%s", fgets(buf,255,in));
  34.     printf("%s\n", fgets(buf,255,in));
  35.  
  36.     fclose(in);
  37. }
  38.  
  39.